﻿using System;
using System.Web.UI.WebControls;
using System.Web.Security;
using Models;

public partial class admin_Mng_Comp : System.Web.UI.Page
{
	protected void Page_Load(object sender, EventArgs e)
	{

	}

	protected void GridViewComponents_SelectedIndexChanged(object sender, EventArgs e)
	{
		string component_id = GridViewComponents.SelectedDataKey.Value.ToString();
		Server.Transfer("View_Comp.aspx?component_id=" + component_id);
	}

	protected void CreateComponentButton_Click(object sender, EventArgs e)
	{
		Server.Transfer("Create_Comp.aspx");
	}

	protected void LoginStatus1_LoggingOut(object sender, LoginCancelEventArgs e)
	{


		Session.Contents.Remove("UserDetails");
		Session.Abandon();
		Session.Contents.RemoveAll();
		FormsAuthentication.SignOut();
		Response.Redirect("../Default.aspx");
	}
}
